package com.baizhi.pojo;

import java.util.*;

public class Person {
    private Integer id;
    private String name;
    private Integer age;
    private String address;
    //JavaBean类型的属性
    private Dog dog;
    //数组类型的属性
    private Friend [] friends;
    //List集合类型的数据
    private List<String> wifes;
    //Set集合类型数据
    private Set<String> love; //爱好
    //Map集合类型
    private Map<String,String> jobs;

    //Properties类型
    private Properties adds; //办公地点



    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setDog(Dog dog) {
        this.dog = dog;
    }

    public void setFriends(Friend[] friends) {
        this.friends = friends;
    }

    public void setWifes(List<String> wifes) {
        this.wifes = wifes;
    }

    public void setLove(Set<String> love) {
        this.love = love;
    }

    public void setJobs(Map<String, String> jobs) {
        this.jobs = jobs;
    }

    public void setAdds(Properties adds) {
        this.adds = adds;
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", address='" + address + '\'' +
                ", dog=" + dog +
                ", friends=" + Arrays.toString(friends) +
                ", wifes=" + wifes +
                ", love=" + love +
                ", jobs=" + jobs +
                ", adds=" + adds +
                '}';
    }
}
